import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import './assets/js/iconfont.js'
import './assets/scss/global.scss'
import 'bootstrap/dist/css/bootstrap.min.css'
import http from './api/config'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import './ui/index.js'

Vue.use(ElementUI)
Vue.prototype.$http = http
Vue.config.productionTip = false

router.afterEach((to, from, next) => {
  console.log(to, from, next)
  window.scrollTo(0, 0)
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
